//
//  OrientationNavigationController.m
//  BeanSproutEDU
//
//  Created by douya on 15/2/5.
//  Copyright (c) 2015年 douya. All rights reserved.
//

#import "OrientationNavigationController.h"

@interface OrientationNavigationController ()

@end

@implementation OrientationNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //为了控制navigation的屏幕方向而单独建立的controller
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(NSUInteger)supportedInterfaceOrientations
{
    return self.topViewController.supportedInterfaceOrientations;
}

-(BOOL)shouldAutorotate
{
    return self.topViewController.shouldAutorotate;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
